<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Filesystem Disk
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default filesystem disk that should be used
    | by the framework. The "local" disk, as well as a variety of cloud
    | based disks are available to your application. Just store away!
    |
    */

    'default' => env('FILESYSTEM_DRIVER', 'local'),

    /*
    |--------------------------------------------------------------------------
    | Filesystem Disks
    |--------------------------------------------------------------------------
    |
    | Here you may configure as many filesystem "disks" as you wish, and you
    | may even configure multiple disks of the same driver. Defaults have
    | been setup for each driver as an example of the required options.
    |
    | Supported Drivers: "local", "ftp", "sftp", "s3"
    |
    */

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],
        // 用户头像上传
        'users' => [
            'driver' => 'local',
            // 上传图片的路径
            'root' => public_path('uploads/users'),
            'url' => '/uploads/users/',
            // 默认图片
            'default' => '/uploads/users/default.jpg',
        ],
        // 学校封面上传
        'school' => [
            'driver' => 'local',
            // 上传图片的路径
            'root' => public_path('uploads/school'),
            'url' => '/uploads/school/',
            // 默认图片
            'default' => '/uploads/school/default.jpg',
        ],
        //图标上传
        'icon' => [
            'driver' => 'local',
            // 上传图片的路径
            'root' => public_path('uploads/icon'),
            'url' => '/uploads/icon/',
            // 默认图片
            'default' => '/uploads/icon/default.jpg',
        ],
        // 文章上传
        'article' => [
            'driver' => 'local',
            // 上传图片的路径
            'root' => public_path('uploads/article'),
            'url' => '/uploads/article/',
            // 默认图片
            'default' => '/uploads/article/default.jpg',
        ],
        //  课程
        'course' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/course'),
            'url' => '/uploads/course/',
            // 默认图片
            'default' => '/uploads/course/default.jpg',
        ],
        //  实训
        'practical' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/practical'),
            'url' => '/uploads/practical/',
            // 默认图片
            'default' => '/uploads/practical/default.jpg',
        ],
        //  用户实训结果
        'practicalUserResult' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/practicalUserResult'),
            'url' => '/uploads/practicalUserResult/',
            // 默认图片
            'default' => '/uploads/practicalUserResult/default.jpg',
        ],
        //  专家
        'expert' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/expert'),
            'url' => '/uploads/expert/',
            // 默认图片
            'default' => '/uploads/expert/default.jpg',
        ],
        //  作业
        'work ' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/work'),
            'url' => '/uploads/work/',
            // 默认图片
            'default' => '/uploads/work/default.jpg',
        ],
        //  轮播图
        'slide' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/slide'),
            'url' => '/uploads/slide/',
            // 默认图片
            'default' => '/uploads/slide/default.jpg',
        ],
        //  商品
        'goods' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/goods'),
            'url' => '/uploads/goods/',
            // 默认图片
            'default' => '/uploads/goods/default.jpg',
        ],
        //  供应商
        'supplier' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/supplier'),
            'url' => '/uploads/supplier/',
            // 默认图片
            'default' => '/uploads/supplier/default.jpg',
        ],
        //  证书
        'certificate' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/certificate'),
            'url' => '/uploads/certificate/',
            // 默认图片
            'default' => '/uploads/certificate/default.jpg',
        ],
        //  试题
        'question' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/question'),
            'url' => '/uploads/question/',
            // 默认图片
            'default' => '/uploads/question/default.jpg',
        ],
         //  用户试题结果
        'userQuestionResult' => [
            'driver' => 'local',
            // 上传的路径
            'root' => public_path('uploads/questionresult'),
            'url' => '/uploads/questionresult/',
            // 默认图片
            'default' => '/uploads/question/default.jpg',
        ],
        // excel
        'excel' => [
            'driver' => 'local',
            // 上传图片的路径
            'root' => public_path('uploads/excel'),
            'url' => '/uploads/excel/',
        ],
        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
        ],

    ],

    /*
    |--------------------------------------------------------------------------
    | Symbolic Links
    |--------------------------------------------------------------------------
    |
    | Here you may configure the symbolic links that will be created when the
    | `storage:link` Artisan command is executed. The array keys should be
    | the locations of the links and the values should be their targets.
    |
    */

    'links' => [
        public_path('storage') => storage_path('app/public'),
    ],

];
